package com.ryskoo.catering.dinnertable.domain;

import com.ryskoo.framework.core.bean.BasicPO;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name = "cater_dinnertable")
public class DinnerTablePO extends BasicPO {

	/* 桌台类型UUID */
	@Column(name = "type_uuid", columnDefinition = "char", length = 32)
	private String typeUuid;

	/* 桌台类型名称 */
	@Transient
	private String typeName;

	/* 桌台编号 */
	@Column(name = "no", columnDefinition = "varchar", length = 20)
	private String no;

	/* 桌台二维码 */
	@Column(name = "qrcode", columnDefinition = "varchar", length = 20)
	private String qrCode;

	/* 桌台名称，主要是包厢类型的使用 */
	@Column(name = "name", columnDefinition = "varchar", length = 20)
	private String name;

	/* 最多使用人数 */
	@Column(name = "max_person", columnDefinition = "int")
	private int maxPerson;

	/* 使用状态，空闲，就餐中 */
	@Column(name = "using_status", columnDefinition = "tinyint", length = 2)
	private String usingStatus = "1";

	/* 锁定类型，已预定/堂食就餐中 */
	@Column(name = "booking_type", columnDefinition = "tinyint", length = 2)
	private String bookingType = "1";

	/* 所属商户uuid */
	@Column(name = "vendor_uuid",columnDefinition = "char",length = 32)
	private String vendorUuid;

	/* 所属商户名称 */
	@Column(name = "vendor_name",columnDefinition = "varchar",length = 50)
	private String vendorName;

	public String getVendorName() {
		return vendorName;
	}

	public void setVendorName(String vendorName) {
		this.vendorName = vendorName;
	}

	public String getVendorUuid() {
		return vendorUuid;
	}

	public void setVendorUuid(String vendorUuid) {
		this.vendorUuid = vendorUuid;
	}

	public String getTypeUuid() {
		return typeUuid;
	}

	public void setTypeUuid(String typeUuid) {
		this.typeUuid = typeUuid;
	}

	public String getNo() {
		return no;
	}

	public void setNo(String no) {
		this.no = no;
	}

	public String getQrCode() {
		return qrCode;
	}

	public void setQrCode(String qrCode) {
		this.qrCode = qrCode;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getMaxPerson() {
		return maxPerson;
	}

	public void setMaxPerson(int maxPerson) {
		this.maxPerson = maxPerson;
	}

	public String getUsingStatus() {
		return usingStatus;
	}

	public void setUsingStatus(String usingStatus) {
		this.usingStatus = usingStatus;
	}

	public String getBookingType() {
		return bookingType;
	}

	public void setBookingType(String bookingType) {
		this.bookingType = bookingType;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}
}
